package com.senyint.imsdk.http;

import java.io.File;
import java.util.Map;

public interface ISimpleHttpService {
	public String get(String url,Map<String,String> params,HttpCallback callback) ;
	public String post(String url, Map<String, String> map, HttpCallback callback) ;
	public byte[] upload(String uploadUrl, Map<String, String> params,Map<String, File> files,HttpCallback callback) ;
	public void download(String uri ,String destFilePath, HttpCallback callback);

	public static interface HttpCallback{
		public void onSuccess(byte[] response);
		public void onFailure(String message);
	}
	
}
